using System;
using System.Collections.Generic;
using Godot;

public class Jiang : IEntity
{
    public List<Vector2I> GetNextPos(Game game, int team, Vector2I current)
    {
        var side = game.GetTeamSide(team);
        var ans = new List<Vector2I>();
        foreach (var rel in Rule.DIRECTLY_MOVEMENT)
        {
            var next = current + rel;
            if (Rule.InHeadquarter(side, next.X, next.Y) && game.entitySlot[next.X, next.Y]?.team != team)
            {
                ans.Add(next);
            }
        }
        return ans;
    }
}